<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<table border="1">
    <thead>
    <tr>
        <td>id</td>
        <td>姓名</td>
        <td>班级</td>
        <td>毕业年份</td>
    </tr>
    </thead>
    <tbody>
    <tr th:each="stu : ${students}">
        <td th:text="${stu.id}"></td>
        <td th:text="${stu.name}"></td>
        <td th:text="${stu.className}"></td>
        <td th:text="${#calendars.format(stu.graduationYear,'yyyy-MM-dd hh:mm:ss')}"></td>
    </tr>
    </tbody>
</table>

</body>
</html>